// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import 'normalize.css/normalize.css' // A modern alternative to CSS resets
import App from './App'
import router from './router'
import ElementUI from 'element-ui';
import './style/index.scss'
import store from './store/index';
import api from '@/api/index';
import plugin from './plugin/index';
import UUID from 'vue-uuid'
import '@/icons/index';
import '@/utils/dialog';

Vue.config.productionTip = false

Vue.use(ElementUI);
Vue.use(plugin);
Vue.use(UUID);

//时间插件
import moment from 'moment';
moment.locale('zh-cn');
Vue.prototype.$moment = moment;

Vue.prototype.$api = api;

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: {
    App
  },
  template: '<App/>'
})
